package com.xyht.sca_s.student_manage_system.modules.appDynamic.entity.resp;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 流程节点配置表
 * </p>
 *
 * @author XYHT
 * @since 2023-07-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("app_process_node_config")
@ApiModel(value="AppProcessNodeConfig对象", description="流程节点配置表")
public class ProcessNodeConfigResp implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "节点id")
    private String id;

    @ApiModelProperty(value = "应用id")
    private String appId;

    @ApiModelProperty(value = "节点名")
    private String name;

    @ApiModelProperty(value = "节点类型[1.申请人 2.审批 3.抄送 4.虚拟节点]")
    private Integer type;

    @ApiModelProperty(value = "父节点id")
    private List<String> prevId;

    @ApiModelProperty(value = "子节点id")
    private List<String> nextId;

    @ApiModelProperty(value = "审批人类型[1.角色 2.指定人 3.提交人自选 4.提交人本人]")
    private Integer approverType;

    @ApiModelProperty(value = "审批对象id")
    private String approverObjectId;

    @ApiModelProperty(value = "节点权限（json）")
    private List<AuthorityResp> authority;

    @ApiModelProperty(value = "是否允许转交")
    private Boolean isDeliver;

    @ApiModelProperty(value = "是否允许回退")
    private Boolean isRollback;

    @ApiModelProperty(value = "是否需要签名")
    private Boolean isSign;

    @ApiModelProperty(value = "是否需要印章")
    private Boolean isStamp;

    @ApiModelProperty(value = "是否需要审批意见")
    private Boolean isOpinion;

    private AppSearchUserResp userInfo;



}
